/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hl7.datatypes.r2.constant;

import org.hl7.datatypes.r2.basic.CS;
import org.hl7.datatypes.r2.basic.UID;
import org.hl7.datatypes.r2.flavors.st.ST_NT;
import org.hl7.datatypes.r2.flavors.st.ST_SIMPLE;

/**
 *
 * @author Obama
 */
public enum NullFlavor{
    
    NI, 
    INV,
    OTH, 
    NINF, 
    PINF, 
    UNC, 
    DER, 
    UNK, 
    ASKU, 
    NAV, 
    QS,
    NASK, 
    TRC,
    MSK,
    NA;
    
    private CS cs;

    private NullFlavor() {
        CS aCs=new CS();
        aCs.setCode(new ST_SIMPLE(this.name()));
        aCs.setCodeSystem(new UID("2.16.840.1.113883.5.1008"));
        aCs.setCodeSystemName(new ST_NT("NullFlavor"));
        this.cs = aCs;
    }

    public CS cs() {
        return cs;
    }

}
